package com.common.annotaion.impl;

import com.common.annotaion.CAnnatation;
import com.common.annotaion.CValue;

import java.util.*;

public class CTableId implements CAnnatation {
    public enum Tab {
        TYPE("value", "import com.baomidou.mybatisplus.annotation.TableId;"),
        VALUE("type", "import com.baomidou.mybatisplus.annotation.IdType;");
        private CValue value;

        Tab(String key, String path) {
            this.value = new CValue(key, path);
        }
    }

    private Set<String> imports = new HashSet<>();

    public CTableId() {
        imports.add("import com.baomidou.mybatisplus.annotation.TableId;");
    }

    @Override
    public String getKey() {
        return "@TableId";
    }

    @Override
    public Set<String> getImports() {
        return imports;
    }


    public static CTableId of(Tab... Tab) {
        CTableId cTableId = new CTableId();

        return cTableId;
    }
}
